package com.example.CRUDDemo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor

public class Product {

private Long id;
private String name;
private Double price;

    public void setId(long l) {
        this.id = l;
    }

    public Object getId() {
        return id;
    }
    public void setName(String string) {
        this.name = string;
    }
    public String getName() {
        return name;
    }
    public void setPrice(double d) {
        this.price = d;
    }
    public double getPrice() {
        return price;
    }
}
